﻿//   AppStorageServiceInstance.cs
//   Copyright (c) 2012 Eswar Prakash
// 
//    This library is free software; you can redistribute it and/or modify  
//    it  under the terms of the GNU Lesser General Public License version  
//    2.1 as published by the Free Software Foundation.                     
//                                                                          
//    This library is distributed in the hope that it will be useful, but   
//    WITHOUT ANY WARRANTY; without even the implied warranty of            
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     
//    Lesser General Public License for more details.                       
//                                                                          
//    You should have received a copy of the GNU Lesser General Public      
//    License along with this library; if not, write to the Free Software   
//    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  
//    USA
namespace CKSAS.AppStorage.SharedService
{
    using Microsoft.SharePoint.Administration;

    /// <summary>
    /// 
    /// </summary>
    internal sealed class AppStorageServiceInstance : SPIisWebServiceInstance
    {
        /// <summary>
        /// 
        /// </summary>
        private const string INSTANCE_TYPENAME = @"Application Storage Service";

        /// <summary>
        /// Initializes a new instance of the <see cref="AppStorageServiceInstance"/> class.
        /// </summary>
        public AppStorageServiceInstance()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="AppStorageServiceInstance"/> class.
        /// </summary>
        /// <param name="server"></param>
        /// <param name="service"></param>
        public AppStorageServiceInstance(SPServer server, SPIisWebService service)
            : base(server, service)
        {
        }

        /// <summary>
        /// Gets the display name that describes the service instance in the Administration user interface.
        /// </summary>
        /// <returns>A string that contains the name of the service instance.</returns>
        public override string TypeName
        {
            get { return INSTANCE_TYPENAME; }
        }
    }
}